package com.example.tys.daggermvp.mvp.presenter;


import android.support.annotation.Nullable;

import com.example.tys.daggermvp.dagger2.annotation.ActivityScoped;
import com.example.tys.daggermvp.mvp.contract.MainActivityContract;

/**
 * @author tys
 * @date 2018/4/14
 */
@ActivityScoped
public class MainActivityPresenter extends MainActivityContract.Presenter {
    /**
     * =================================================
     */
    @Override
    public String say(String v) {
        MainActivityContract.View mView;
        if (mViewWeakRef != null && (mView = mViewWeakRef.get()) != null) {
            if (mData != null) {
                mView.say(mData.say(v));
            }
        }
        return v;
    }
}
